﻿{include file="public/header" /}
<div class="tab">
    <div class="tab-head">
        <strong>系统设置</strong>
        <ul class="tab-nav">
            <li {if $tab=='' || $tab == 'setting'}class="active"{/if}><a href="#tab-setting">系统设置</a></li>
            <li {if $tab=='version'}class="active"{/if}><a href="#tab-version">版本更新</a></li>
        </ul>
    </div>
    <div class="tab-body">
        <br/>
        <div class="tab-panel {if $tab == 'version'}active{/if}" id="tab-version" style="float: left;margin-left: 30px">
            <form method="post" class="form-x" enctype="multipart/form-data" action="?tab=version">
                <input type="hidden" name="edit" value="version">
                <div class="form-group">
                    <div class="label">
                        <label>终端类型</label>
                    </div>
                    <div class="field">
                        <select name="type" class="input input-auto">
                            <option value="user">用户端</option>
                            <option value="seller">商家端</option>
                            <option value="express">配送端</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>上传apk</label>
                    </div>
                    <div class="field">
                        <input type="file" id="apk" name="apk" data-validate="required:请上传apk"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>版本号</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input input-auto" id="version" name="version" size="80"
                               placeholder="例如 1.0.1" style="width: 120px;" data-validate="required:请填写版本号"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>是否强制更新</label>
                    </div>
                    <div class="field">
                        <div class="button-group radio">
                            <label class="button">
                                <input type="radio" name="constraint" value="1"><span class="icon icon-check"></span> 是
                            </label>
                            <label class="button active">
                                <input type="radio" name="constraint" value="0" checked><span class="icon icon-times"></span> 否
                            </label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>描述</label>
                    </div>
                    <div class="field">
                        <textarea name="description" class="input input-auto" rows="5" cols="80" placeholder="请填写描述"
                                  data-validate="required:请填写描述"></textarea>
                    </div>
                </div>
                <div class="form-button">
                    <button class="button bg-main" type="submit">提交</button>
                </div>
            </form>
        </div>
        <div class="tab-panel {if $tab == '' || $tab == 'setting'}active{/if}" id="tab-setting">
            <form method="post" class="form-x" enctype="multipart/form-data" action="?tab=setting">
                <div class="form-group">
									<div class="label">
										<label>配送</label>
									</div>
									<div class="field">
										<div class="button-group button-group-small radio">
											<label class="button {if $data.express_type== 1 || !$data.express_type}active{/if}">
													<input name="express_type" value="1" {if $data.express_type== 1 || !$data.express_type}checked="checked"{/if} type="radio"><span class="icon icon-check"></span> 平台配送
											</label>
											<label class="button {if $data.express_type == 2}active{/if}">
											<input name="express_type" value="2" {if $data.express_type== 2}checked="checked"{/if} type="radio"><span class="icon icon-check"></span> 达达配送
											</label>
										</div>
									</div>
								</div>
                <div class="form-group">
									<div class="label">
										<label>分销</label>
									</div>
									<div class="field">
										<div class="button-group button-group-small radio">
											<input class="input input-auto" name="level_1" placeholder="一级" value="{$data['level_1']}"/>% &nbsp;<input class="input input-auto" name="level_2" placeholder="二级" value="{$data['level_2']}"/>% &nbsp;<input class="input input-auto" name="level_3" placeholder="三级" value="{$data['level_3']}"/>% 
										</div>
									</div>
								</div>
                <div class="form-button">
                    <button class="button bg-main" type="submit">提交</button>
                </div>
            </form>
        </div>
    </div>
</div>
{include file="public/footer" /}